﻿@model IEnumerable<WebsiteImages.Models.WebsiteImage>

@{
    ViewBag.Title = "Index";
}

<h2>Images</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>


@foreach (var item in Model) {
    
        <a href="/WebsiteImage/details/@item.Id">
            <img alt="foo" src = "@Url.Action("GetImageThb", "WebsiteImage", new { id = item.Id })" /> 
        </a>
        @Html.ActionLink("Delete", "Delete", new { id=item.Id })
    <br/>
    
}


